package java.cn.tiger;

public class ThreadLocalTest {
    public static void main(String[] args) {
        ThreadLocal<String> threadLocal = new ThreadLocal<>();
        threadLocal.set("Hello");
        System.out.println(threadLocal.get()); // 输出 "Hello"
        threadLocal.remove();
        System.out.println(threadLocal.get()); // 输出 null
    }
}
